<?php
/**
 * Created by PhpStorm.
 * User: yyc
 * Date: 2018/9/6
 * Time: 9:55
 */
class ASSUser extends Eloquent
{
    protected $table = "ass_user";

    /**
     * @Description: 根据用户的用户名、密码获取用户信息
     * @param $user_name    string 用户名
     * @param $password    string 密码
     * @return mixed
     * @author yyc
     * @date 2018/9/6 16:34
     */
    public static function findUserByUP($user_name, $password){
        return ASSUser::where('user_name', $user_name)->where('password', $password)->first();
    }

}